package com.furentech.iotserver.fa.sinopec.sinopec_processor;

import com.furentech.iotserver.fa.sinopec.IProtocolParser;
import com.furentech.iotserver.fa.utils.BCD8421Operater;
import io.netty.channel.Channel;

public abstract class SinopecProcessorBase implements IProtocolParser {


    abstract String actualGetJsonString(byte[] buf);
    abstract String actualGetReadableString(byte[] buf);
    abstract byte[] actualGetResponse(byte[] buf,Channel channel);


    @Override
    public String getJsonString(byte[] buf) {
        return actualGetJsonString(buf);
    }

    @Override
    public String getReadableString(byte[] buf) {
        return actualGetReadableString(buf);
    }

    @Override
    public byte[] getResponse(byte[] buf, Channel channel) {
        return actualGetResponse(buf,channel);
    }
}
